package org.wedding.center.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 优惠卷信息表(CouponInfo)实体类
 *
 * @author songkaiyue
 * @since 2025-05-16 10:42:50
 */
@TableName(value = "coupon_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CouponInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    
    /**
     * 唯一标识
     */
    @Schema(description = "唯一标识")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

     /**
     * 用户id
     */
    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private String userId;
    

     /**
     * 订单id
     */
    @Schema(description = "订单id")
    @TableField(value = "order_id")
    private String orderId;
    

     /**
     * 订单编号
     */
    @Schema(description = "订单编号")
    @TableField(value = "order_code")
    private String orderCode;
    

     /**
     * 优惠卷金额
     */
    @Schema(description = "优惠卷金额")
    @TableField(value = "amount")
    private BigDecimal amount;
    

     /**
     * 有效期
     */
    @Schema(description = "有效期")
    @TableField(value = "validity_day")
    private Integer validityDay;


     /**
     * 到期时间
     */
    @Schema(description = "到期时间")
    @TableField(value = "limit_time")
    private String limitTime;
    

     /**
     * 状态
     */
    @Schema(description = "状态")
    @TableField(value = "status")
    private String status;
    

     /**
     * 类型0：平台卷  1：用户卷
     */
    @Schema(description = "类型0：平台卷  1：用户卷")
    @TableField(value = "type")
    private String type;


     /**
     * 是否可用 0：是  1：否
     */
    @Schema(description = "是否可用 0：是  1：否")
    @TableField(value = "is_use")
    private String isUse;
    

     /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time")
    private String createTime;
    

     /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField(value = "update_time")
    private String updateTime;
    

     /**
     * 删除标识：0:未删除  1:已删除
     */
    @Schema(description = "删除标识：0:未删除  1:已删除")
    @TableField(value = "del_flag")
    private String delFlag;

    @TableField(exist = false)
    private String userName;


}

